#ifndef LUNARFESTIVALS_H
#define LUNARFESTIVALS_H
#include <iostream>
#include <vector>
#include <string>
using namespace std;

struct LunarFestival {
    string date; 
    string name;
};

class fuction8_2 {
private:
    vector<LunarFestival> lunarFestivals;

public:
    fuction8_2() {
        lunarFestivals.push_back({"正月初一", "春节"});
        lunarFestivals.push_back({"正月十五", "元宵节"});
        lunarFestivals.push_back({"五月初五", "端午节"});
        lunarFestivals.push_back({"七月初七", "七夕节"});
        lunarFestivals.push_back({"八月十五", "中秋节"});
        lunarFestivals.push_back({"九月初九", "重阳节"});
        lunarFestivals.push_back({"腊月初八", "腊八节"});
        lunarFestivals.push_back({"腊月二十四", "传统扫房日"});
    }

    void jieri() {
    cout << "\n【农历节日一览】：\n";
    for (int i = 0; i < lunarFestivals.size(); i++) {
            cout << "\t" << lunarFestivals[i].date << " - " << lunarFestivals[i].name << endl;
        }
        cout << "\n按下回车键继续...";
        cin.ignore();
        cin.get();
    }
};
#endif
